/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author ChArFaTo
 */
@Embeddable
public class SalarioSparafiscalesEJBPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(nullable = false)
    private int salarioSCodigo;
    @Basic(optional = false)
    @NotNull
    @Column(nullable = false)
    private int salarioIndex;

    public SalarioSparafiscalesEJBPK() {
    }

    public SalarioSparafiscalesEJBPK(int salarioSCodigo, int salarioIndex) {
        this.salarioSCodigo = salarioSCodigo;
        this.salarioIndex = salarioIndex;
    }

    public int getSalarioSCodigo() {
        return salarioSCodigo;
    }

    public void setSalarioSCodigo(int salarioSCodigo) {
        this.salarioSCodigo = salarioSCodigo;
    }

    public int getSalarioIndex() {
        return salarioIndex;
    }

    public void setSalarioIndex(int salarioIndex) {
        this.salarioIndex = salarioIndex;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) salarioSCodigo;
        hash += (int) salarioIndex;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof SalarioSparafiscalesEJBPK)) {
            return false;
        }
        SalarioSparafiscalesEJBPK other = (SalarioSparafiscalesEJBPK) object;
        if (this.salarioSCodigo != other.salarioSCodigo) {
            return false;
        }
        if (this.salarioIndex != other.salarioIndex) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Modelo.SalarioSparafiscalesEJBPK[ salarioSCodigo=" + salarioSCodigo + ", salarioIndex=" + salarioIndex + " ]";
    }
    
}
